package plus.decl;

import java.io.File;
import java.util.*;

import plus.Module;
import plus.run.Loader;

public abstract class Unit {
	final File __FILE__ = Loader.__FILE__;
	final String name;
	final List<D_Import> imports;
	Unit(String name, List<D_Import> imports) {
		this.name = name;
		this.imports = imports;
	}
	abstract public void compile();
	public void resolveImports() {
		for (D_Import i: imports) i.resolve(__FILE__);
	}
	public abstract Module asModule();
}
